#coding:utf-8
import urllib.parse
#get请求  参数是拼接在地址栏的
#  www.baidu.com/wd=python&a=1&b=2
dic = {'userName':'tyy','age':18}
data = urllib.parse.urlencode(dic)
print(data)